package com.hdl.school.bean;

import org.xutils.db.annotation.Column;
import org.xutils.db.annotation.Table;

import java.util.Date;


@Table(name="card_info", onCreated = "CREATE  INDEX card ON card_info(card_num)")
public class CardInfo {
    @Column(name = "id", isId = true)
    private int id;

    @Column(name = "name",property = "NOT NULL")
    private String name;

    @Column(name = "sex")
    private int sex;

    @Column(name = "department")
    private String department;

    @Column(name = "position")
    private String position;

    @Column(name = "card_num",property = "NOT NULL")
    private String cardNum;

    @Column(name = "delete_tag",property = "NOT NULL")
    private int deleteTag;

    @Column(name = "start_time",property = "NOT NULL")
    private Date startTime;

    @Column(name = "end_time",property = "NOT NULL")
    private Date endTime;

    @Column(name = "card_type",property = "NOT NULL")
    private int cardType;

    @Column(name = "add_time",property = "NOT NULL")
    private Date createTime;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getDepartment() {
        return department;
    }

    public void setDepartment(String department) {
        this.department = department;
    }

    public String getPosition() {
        return position;
    }

    public void setPosition(String position) {
        this.position = position;
    }

    public String getCardNum() {
        return cardNum;
    }

    public void setCardNum(String cardNum) {
        this.cardNum = cardNum;
    }

    public int getDeleteTag() {
        return deleteTag;
    }

    public void setDeleteTag(int deleteTag) {
        this.deleteTag = deleteTag;
    }

    public Date getStartTime() {
        return startTime;
    }

    public void setStartTime(Date startTime) {
        this.startTime = startTime;
    }

    public Date getEndTime() {
        return endTime;
    }

    public void setEndTime(Date endTime) {
        this.endTime = endTime;
    }

    public int getSex() {
        return sex;
    }

    public void setSex(int sex) {
        this.sex = sex;
    }

    public int getCardType() {
        return cardType;
    }

    public void setCardType(int cardType) {
        this.cardType = cardType;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }
}
